package com.meizi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meizi.core.tool.api.PageUtils;
import com.meizi.mall.product.entity.CategoryEntity;
import com.meizi.mall.product.vo.CatalogL2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021-01-06 13:26:57
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWhitTree();

    void removeMenuByIds(List<Long> asList);

    List<Long> findCatelogPath(Long catelogId);

    List<CategoryEntity> getLevel1Cate();

    Map<String, List<CatalogL2Vo>> catalogJson();

    void updateCategory(CategoryEntity category);
}

